package yz.dut.edu.graduate.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import yz.dut.edu.graduate.dao.IngredientMapper;

@Service
public class IngredientService {
    @Autowired
    IngredientMapper ingredientMapper;

    public int GetIid(String ingredientName){
        int i_id=-1;
        i_id=ingredientMapper.selectIdByName(ingredientName);
        return i_id;
    }



}
